<ul>
  <?php
	$items=view::newInstance()->_get('items');
	foreach($items as $key=>$item) { ?>
      <li>
        <div id="add-d-area">
          <div class="add-container">
            <div class="add-image-holder"><a href="<?php echo $item->getURI(); ?>" title="<?php echo $item->getName();?>"><img src="<?php $img= Image_Thumbnail::newInstance()->resize(50,50, $item->getPrimaryImagePath()); echo $img->getURI(); ?>" width="<?php echo $img->getWidth(); ?>" height="<?php echo $img->getHeight(); ?>" alt="<?php echo $item->getName(); ?> Image" title="<?php echo $item->getName(); ?>" /></a></div>
            <div class="common-box">
              <h2 class="title"><a href="<?php echo $item->getURI(); ?>" title="<?php echo $item->getName(); ?>"><?php echo $item->getName(); ?></a> </h2>
              <p class="add-detail"><?php echo $item->getDescription(); ?></p>
              <?php $tags=explode(',',$item->getTags());
				if($tags) {  ?>
			  <ul class="add-highlight">
			  <?php foreach($tags as $tag){
				if($tag!='') {?>
			<li><a href="/tag/<?php echo str_replace(' ','+',$tag); ?>/" title="<?php echo $tag; ?>"><?php echo $tag; ?></a><li>
        
              <?php }
}			  ?>
			  </ul>
			  
			  <?php } ?>
              <div class="add-poster-action">
                <div class="views-count">Total <?php echo $item->getViews(); ?> views.</div>
                <div class="add-posted-by">Add posted by: <a href="#" title="#">PRIVATE USER</a></div>
                <div class="add-post-date"><a href=""><span><?php echo $item->getLocal_area(); ?></span></a> | <?php $diff=$item->getElapsedTime(); echo $diff['count'].' '.$diff['unit']; ?> ago<br>
                <a class="save-add" href="#"> + Add to Shortlist </a> </div>
              </div>
            </div>
          </div>
        </div>
      </li>
      <?php } ?>
    </ul>